import React from "react";
import { Listshow } from "../style";
import { Link } from "react-router-dom";

const Item = ({ data }, sectionID, rowID) => {
  console.log(data);
  return (
    <Listshow key={rowID} style={{ padding: "0 15px" }}>
      <Link to={"/detail/sale/" + data.id}>
        <img src={data.img} />
        <div className="txt-area">
          <span>{data.title}</span>

          <div className="txt">"{data.intro}"</div>
          <div className="price clearfix">
            <div className="t1">
              {data.merchant}
              <s>￥{data.price}</s>
            </div>
            <div className="t2">{data.hits}</div>
          </div>
        </div>
      </Link>
    </Listshow>
  );
};

export default Item;
